<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<h:head>
 	<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/style.css" ></link>
	<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/resources/css/demos.css" />
</h:head>
<h:body>
   <div class="homepage" >
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td width="100%" height="70px"/>
				</tr>
				<tr>
					<td width="90%" height="300px">
						<table width="100%">
							<tr>
								<td  width="10px" height="50px"/>
								<td  width="90%"><h:form>	<div class="tabs-secondary">
											<ul class="tabs secondary">
									    	
									    	<li>
										   			<h:commandLink action="#{chantierController.retourAuChantier}"  value="Chantiers"/>
										   			</li>
									    		<li>
									    			<h:commandLink  action="#{clientController.retourAuClient}" value="Clients"/> </li>
												<li>
										   			<h:commandLink action="#{associeController.retourAuAssocie}"  value="Associés"/>
										   			</li>
										    	<li>
									    			<h:commandLink  action="#{userController.retourAuUser}" value="Utilisateurs Systeme"/> </li>
									   		
									   		<li>
									    			<h:commandLink  action="#{employeController.retourAEmploye}" value="Employés"/> </li>
									   		
									   		<li>
									    			<h:commandLink  action="#{fournisseurController.retourAuFournisseur}" value="Fournisseurs"/> </li>
									   		
									   		
									   		    	
									    	</ul>
									    	
									    	
									    	
									    	<ul class="tabs secondary">
									    	
									    	<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>
									    	<li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>
									    	<li></li><li></li><li></li><li></li><li></li><li></li><li></li>
									    	<li><h:commandLink  action="#{employeController.retourACategorie}" value="Catégories Emloyés"/> </li> 
									   		<li><h:commandLink  action="#{employeController.retourAImputation}" value="Imputations"/> </li>
									   		 	<li><h:commandLink  action="#{employeController.retourAExportImputation}" value="Export Imputations"/> </li>	
									    	</ul>
									  </div></h:form> 
								</td>
								<td/>
								
							</tr>
							
							<tr>
								<td  width="45px" height="200px"/>
								<td>
									<h:form>
										<rich:dataTable style="width:100%;"
											value="#{employeController.imputationsEmp}" var="var" id="tabImput"
											rows="20" rowClasses="even-row, odd-row" styleClass="stable">
											<rich:column style="width:10px; ">
												<f:facet name="header">
													<h:outputText value="#{msg.ctickBox}" />
												</f:facet>
												<h:outputText value="#{var.id}" id="idImputation" />

											</rich:column>
											<rich:column style="width:200px;">
												<f:facet name="header">
													<h:outputText value="#{msg.cdateImputation}" />
												</f:facet>
												<h:outputText value="#{var.dateImputation}" id="dateImputation" />
											</rich:column>
											
											<rich:column style="width:200px;">
												<f:facet name="header">
													<h:outputText value="#{msg.cnombreJours}" />
												</f:facet>
												<h:outputText value="#{var.nombreJours}" id="nombreJours" />
											</rich:column>
											<rich:column style="width:200px;">
												<f:facet name="header">
													<h:outputText value="#{msg.cnombreHeures}" />
												</f:facet>
												<h:outputText value="#{var.nombreHeures}" id="nombreHeures" />
											</rich:column>
											
										</rich:dataTable>
										
										
								
								         	<table width="700px">
										<tr>
											<td></td>
											<td></td>
										</tr>
										<tr>
											<td><h:outputLabel value="#{msg.cnombreHeures}"/></td>
			    							<td><h:outputText id="sommeHeures"
													value="#{employeController.paiementEmploye.sommeHeures}" size="35">
												</h:outputText></td>
											<td/>
											<td><h:outputLabel value="#{msg.ctotalHeures}"/></td>
			    							<td><h:outputText id="totalPrixHeures"
													value="#{employeController.paiementEmploye.aPayerHeures}" size="35">
												</h:outputText></td>
											<td/>
										</tr>
										<tr>
											<td><h:outputLabel value="#{msg.cnombreJours}"/></td>
			    							<td><h:outputText id="nombreJoursTot"
													value="#{employeController.paiementEmploye.sommeJours}" size="35">
												</h:outputText></td>
											<td/>
											
											<td><h:outputLabel value="#{msg.ctotalJours}"/></td>
			    							<td><h:outputText id="sommeJoursTot"
													value="#{employeController.paiementEmploye.aPayerJours}" size="35">
												</h:outputText></td>
											<td/>
											
											</tr>
											<tr>
											
											<td><h:outputLabel value="#{msg.ctotalApayer}"/></td>
			    							<td><h:outputText id="TotApayer"
													value="#{employeController.paiementEmploye.sommeApayer}" size="35">
												</h:outputText></td>
											<td/>
											</tr>
<!-- 											<tr> -->
<!-- 											<td align="left" width="150px;"><h:outputLabel value="#{msg.associe}" styleClass="" /></td> -->
<!-- 												<td><h:selectOneMenu   -->
<!-- 													value="#{employeController.paiementEmploye.associe}" id="associé" > -->
<!-- 													<f:selectItems value="#{employeController.listAssocie}" /> -->
<!-- 												</h:selectOneMenu> -->
<!-- 												</td>	 -->
<!-- 										</tr> -->
										<tr>
											<td><h:outputLabel value="#{msg.cdatePaiement}"/></td>
			    							<td>
			    							
			    								<rich:calendar id="dateClient"
													datePattern="dd/MM/yyyy"
													value="#{employeController.paiementEmploye.datePaiement}"
													dayStyleClass="disabledClassesProv" boundaryDatesMode="scroll"
													size="25" > 
												</rich:calendar>
											 </td>
										</tr>
										<tr>
				    						<td/>
				    						<td/>
				    						<td width="10px"/>
				    						<td/>
				    						<td align="center">
				    							<table>
				    								<tr>
				    									 <td><h:commandButton  value="Historique" action="#{employeController.HistoriqueEmploye}"/></td>  
				    									 <td><h:commandButton  value="Payer" action="#{employeController.PaiementEffectue}"/></td>  
				    									
				    								</tr>
				    							</table> 
				    						</td>
										</tr>
									</table>
								
								
								
									</h:form>
								</td>
								<td/>
							</tr>
						</table>
					</td>
				</tr>
			</table>
	</div>
</h:body>
</html>